<!DOCTYPE html>
<html>
<head>
	<title>商品</title>
	<meta charset="utf-8">
	<link rel="stylesheet" type="text/css" href="{{asset('bootstrap-3.3.7/css/bootstrap.min.css')}}">
</head>
<body>
    @include('Common/tip')
    <h2>商品页</h2>
    <table class="table table-hover">
        <tr>
            <th>序号</th>
            <th>商品名</th>
            <th>价格</th>
            <th>操作</th>
        </tr>
        @foreach ($goods as $v)
        <tr>
            <th>{{$v->id}}</th>
            <th>{{$v->gname}}</th>
            <th>{{$v->price}}</th>
            <td>
                <a href="{{url('/admin/product', $v->id)}}">编辑</a>
                <a href="{{url('/admin/product/delete', $v->id)}}">删除</a>
            </td>
        </tr>
        @endforeach
    </table>
    {{$goods->links()}}
</body>
</html>